From dedca852d0bd91db2821e6ef7498165bee8404a4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 31 Oct 2010 19:01:33 +0000 Subject: [PATCH] x86_emulate: Fix build with some versions of gcc targeting i386. Signed-off-by: Keir Fraser --- xen/arch/x86/x86_emulate/x86_emulate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index 7ad0dd5d2f..d6586d6944 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -2101,9 +2101,11 @@ x86_emulate( case 4: _regs.edx = (uint32_t)(((int32_t)_regs.eax < 0) ? -1 : 0); break; +#ifdef __x86_64__ /* compile warning with some versions of 32-bit gcc */ case 8: _regs.edx = ((int64_t)_regs.eax < 0) ? -1 : 0; break; +#endif } break; -- 2.30.2